package com.commodity.Service;

import com.commodity.entity.Commodity;
import com.commodity.entity.CommoditySearchBean;
import com.commodity.utils.PaginateInfo;

import java.util.List;

public interface CommodityService {
    List<Commodity> findAll(CommoditySearchBean csb,PaginateInfo pi);
    boolean save(Commodity commodity);

    int deleteByIds(Integer[] intIds);

    Commodity findById(Integer id);

    boolean update(Commodity commodity);

    boolean findByCommodityId(Commodity commodity1);
}
